package com.duguo.dynamicmvc.view.redirect;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.duguo.dynamicmvc.model.Model;

public class RedirectView extends AbstractRedirectView {
	
	public RedirectView(String viewName){
		setViewName(viewName);
	}
	
    public void render(HttpServletRequest request, HttpServletResponse response, Model model) throws Exception {
    	senRedirect(request, response, model,request.getContextPath()+getViewName());
    }
}
